package lanqiaotrain.t2;

import java.util.Scanner;

/**
 * @Author: Hasee
 * @Date: 2020-10-04 12:42:42
 */
public class Basic11 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String n = scanner.nextLine();
        System.out.println(Integer.valueOf(n,16).toString());


    }
}

